package Entity;

/**
 *
 * @author Hieu Tran
 */
public class News {

    private int id;
    private String title;
    private String slug;
    private int dateline;
    private String content;
    private String tags;
    private int cid;
    private int mid;
    private String catname;
    private String author;

    public News(int id, String title, String content, String tags, String slug, int dateline, String catname, String author) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.tags = tags;
        this.slug = slug;
        this.dateline = dateline;
        this.catname = catname;
        this.author = author;
    }
    
    

    public int getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getSlug() {
        return slug;
    }

    public String getContent() {
        return content;
    }

    public String getTags() {
        return tags;
    }

    public int getCid() {
        return cid;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setSlug(String slug) {
        this.slug = slug;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }            

    public News(String title, String slug, int dateline, String content, String tags, int cid, int mid) {
        this.title = title;
        this.slug = slug;
        this.dateline = dateline;
        this.content = content;
        this.tags = tags;
        this.cid = cid;
        this.mid = mid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getDateline() {
        return dateline;
    }

    public void setDateline(int dateline) {
        this.dateline = dateline;
    }

    public News(int id, String title, String slug, int dateline, String content, String tags, int cid, int mid) {
        this.id = id;
        this.title = title;
        this.slug = slug;
        this.dateline = dateline;
        this.content = content;
        this.tags = tags;
        this.cid = cid;
        this.mid = mid;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public String getCatname() {
        return catname;
    }

    public String getAuthor() {
        return author;
    }

    public void setCatname(String catname) {
        this.catname = catname;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
    

}
